package com.example.prison.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 *
 * @TableName user_info
 */
@TableName(value ="user_info")
@Data
public class UserInfo implements Serializable {
    /**
     * 用户ID
     */
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    /**
     * 用户名
     */
    @TableField(value = "user_name")
    private String userName;

    /**
     * 登录密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 所属单位
     */
    @TableField(value = "department")
    private String department;

    /**
     * 角色
     */
    @TableField(value = "role_name")
    private String roleName;

    /**
     * 功能
     */
    @TableField(value = "function")
    private String function;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
